﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    #region ScoreInfoEntity
    /// <summary>
    /// Entity:ScoreInfoEntity
    /// Author:NetCenter
    /// DateTime:2021/5/23 15:00:39
    /// </summary>
    [Serializable]
    public class ScoreInfoEntity
    {
        #region Member Variables
        protected string _iD = String.Empty;
        protected double _math;
        protected double _eng;
        protected double _subjectScore;
        #endregion
        #region Constructer without paras
        public ScoreInfoEntity()
        {
        }
        #endregion
        #region Constructer with paras
        /// <summary>
        /// Constructer with paras
        /// </summary>
        /// <param name="iD"></param>
        /// <param name="math"></param>
        /// <param name="eng"></param>
        /// <param name="subjectScore"></param>
        public ScoreInfoEntity(
        string iD,
        double math,
        double eng,
        double subjectScore)
        {
            this._iD = iD;
            this._math = math;
            this._eng = eng;
            this._subjectScore = subjectScore;
        }
        #endregion
        #region Public Properties
        public string ID
        {
            get { return _iD; }
            set { _iD = value; }
        }

        public double Math
        {
            get { return _math; }
            set { _math = value; }
        }

        public double Eng
        {
            get { return _eng; }
            set { _eng = value; }
        }

        public double SubjectScore
        {
            get { return _subjectScore; }
            set { _subjectScore = value; }
        }
        #endregion
    }
    #endregion
}
